﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace LibExtend
{
    public class TableColls : CollectionBase
    {
        public TableColls()
        {
            
        }

        public void Add(Table Table)
        {
            this.List.Add(Table);
        }

        public Table Table(Point point)
        {
            foreach (Table _cel in List)
            {
                if (_cel.Bound.Contains(point)) return _cel;
            }
            return null;
        }

        public Table Table(Table Table)
        {
            foreach (Table _cel in List)
            {
                if (object.Equals(Table, _cel)) return _cel;
            }
            return null;
        }
    }
}
